<%@page
	import="Entity.*"
	import="Business.*"
	import="WebAction.*"
	import="Exceptions.*"
	import="java.util.Locale"
    import="java.util.ArrayList"
%>
<%
int type=Integer.parseInt(request.getParameter("table"));
int id=Integer.parseInt(request.getParameter("id"));
int output=0;
        switch (type) {

            case 1 :     try {
                            output=NasService.Supprimer (id);
                             } catch (OutException ex) {
                                System.err.println(ex.getMessage());
                            } catch (Exception ex) {
                                System.err.println(ex.getMessage());
                            }
                             %>
                            <script language="Javascript">
                            <!--
                            window.location.href='../index.jsp?option=0&success=1';
                            // -->
                            </script>
                            <%
                            
                        break;

            case 2 :     try {
                            System.err.println("THE ID = "+id);
                            output=RadacctService.Supprimer (id);
                             } catch (OutException ex) {
                                System.err.println(ex.getMessage());
                            } catch (Exception ex) {
                                System.err.println(ex.getMessage());
                            }                       
                             %>
                            <script language="Javascript">
                            <!--
                           window.location.href='../index.jsp?option=0&success=1';
                            // -->
                            </script>
                            <%
                           
                        break;

            case 3 :     try {
                            output=RadcheckService.Supprimer (id);
                             } catch (OutException ex) {
                                System.err.println(ex.getMessage());
                            } catch (Exception ex) {
                                System.err.println(ex.getMessage());
                            }
                             %>
                            <script language="Javascript">
                            <!--
                           window.location.href='../index.jsp?option=0&success=1';
                            // -->
                            </script>
                            <%
                           
                        break;

            case 4 :     try {
                            output=RadgroupcheckService.Supprimer (id);
                             } catch (OutException ex) {
                                System.err.println(ex.getMessage());
                            } catch (Exception ex) {
                                System.err.println(ex.getMessage());
                            }
                             %>
                            <script language="Javascript">
                            <!--
                           window.location.href='../index.jsp?option=0&success=1';
                            // -->
                            </script>
                            <%
                          
                        break;

            case 5 :     try {
                            output=RadgroupreplyService.Supprimer (id);
                             } catch (OutException ex) {
                                System.err.println(ex.getMessage());
                            } catch (Exception ex) {
                                System.err.println(ex.getMessage());
                            }
                             %>
                            <script language="Javascript">
                            <!--
                           window.location.href='../index.jsp?option=0&success=1';
                            // -->
                            </script>
                            <%
                  
                        break;

           case 6 :     try {
                            output=RadpostauthService.Supprimer (id);
                             } catch (OutException ex) {
                                System.err.println(ex.getMessage());
                            } catch (Exception ex) {
                                System.err.println(ex.getMessage());
                            }
                             %>
                            <script language="Javascript">
                            <!--
                            window.location.href='../index.jsp?option=0&success=1';
                            // -->
                            </script>
                            <%

                        break;

           case 7 :     try {
                            output=RadreplyService.Supprimer (id);
                             } catch (OutException ex) {
                                System.err.println(ex.getMessage());
                            } catch (Exception ex) {
                                System.err.println(ex.getMessage());
                            }
                             %>
                            <script language="Javascript">
                            <!--
                            window.location.href='../index.jsp?option=0&success=1';
                            // -->
                            </script>
                            <%

                        break;

           case 8 :     try {
                            output=UsergroupService.Supprimer (id);
                             } catch (OutException ex) {
                                System.err.println(ex.getMessage());
                            } catch (Exception ex) {
                                System.err.println(ex.getMessage());
                            }
                             %>
                            <script language="Javascript">
                            <!--
                            window.location.href='../index.jsp?option=0&success=1';
                            // -->
                            </script>
                            <%

                        break;


 
            default:        %>
                            <script language="Javascript">
                            <!--
                            window.location.href='index.jsp';
                            // -->
                            </script>
                            <%



        }
 %>